<template>
	<view class="win-detail-contoiner">
		<view class="num">{{props.num}}</view>
		<view class="text">
			<view>{{props.dataItem.serviceName}}</view>
			<view>办理时长：{{props.dataItem.personAvgTimes}}min
				<text class="avg">平均时长:{{props.dataItem.avgTimes}}min</text>
			</view>
			<view>办理次数：{{props.dataItem.handleCount}}次</view>
			<view>办理人：{{props.dataItem.handlePerosn}}</view>
			<view>所属单位：{{props.dataItem.organName}}</view>
		</view>
	</view>
</template>

<script setup>
import { computed } from 'vue'
const props = defineProps({
	dataItem: Array,
	num: Number,
})
</script>

<style lang="scss" scoped>
	.win-detail-contoiner {
		display: flex;
		margin-top: 20rpx;
		border-bottom: 1rpx solid #F6F6F6;

		// align-items: center;
		.num {
			margin-top: 8rpx;
			width: 34rpx;
			height: 34rpx;
			background: #455BDF;
			border-radius: 5rpx;
			line-height: 34rpx;
			text-align: center;
			font-size: 25rpx;
			font-family: Source Han Sans CN;
			font-weight: bold;
			color: #FFFFFF;
		}

		.text {
			margin-left: 20rpx;
			line-height: 50rpx;
			padding-bottom: 20rpx;
			font-size: 28rpx;
			.numberText{
				color: #455BDF;
			}
			.resultText{
				color: #FB453B;
			}
			.avg {
				background: #455BDF;
				color: white;
				padding: 0 10rpx;
				margin-left: 50rpx;
			}
		}
	}

</style>
